package pta.MOOC.ch02.ex04;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double F = scanner.nextDouble();
        double c = 5 * (F-32)/9;
        System.out.printf("%.2f",c);
    }
}
